<?php
$url = 'http://www.baidu.com/asd/sdf/gi.php?id=1';

$str = strrchr($url,'.');
$arr = explode('?',$str);

var_dump($arr[0]);

exit;
$a = 123;

function ad ($c) {
	$a = 34;
}

echo $a;
